const {createProxyMiddleware} = require('http-proxy-middleware')
module.exports = function(app){
    app.use(createProxyMiddleware('/api',{
        target:'https://apiv2.pinduoduo.com/api/gindex/tf/query_tf_goods_info',
        secure:false,
        changeOrigin:true,
        pathRewrite:{
            "^/api":''
        }
    }))
}